package com.example.demo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/Hello")
public class HelloController {
    @RequestMapping(value = "/shell",method = RequestMethod.GET) //使用method属性指定get/post...等请求方式
    public  String sayHi(){
        return "Hello SpringBoot";
    }
}
